﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace Zeny.Common.Utils
{
    public class JsonUtils
    {
        public static string serialize(Object o)
        {
            string s = JsonConvert.SerializeObject(o);

            return s;
        }

        public static T deserialize<T>(String s)
        {
            T o = JsonConvert.DeserializeObject<T>(s);

            return o;
        }
    }
}
